package com.john.blog.controller.front;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.john.blog.common.vo.CommonResult;
import com.john.blog.model.po.Notice;
import com.john.blog.service.NoticeService;

/**
 * 通知
 * 
 * @author JiangGengchao
 * @date 2018年2月5日
 */
@RestController
@RequestMapping("/blog/notice")
public class FrontNoticeController {

    @Autowired
    private NoticeService noticeService;

    @RequestMapping("/findAll")
    public CommonResult findAll() {
        List<Notice> data = noticeService.findAll();
        return CommonResult.build(200, null, data);
    }

}
